//
//  UserAccount.h
//  backpack
//
//  Created by wj on 16/6/8.
//  Copyright © 2016年 wujian. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark - 登录返回绑定状态的数据

@interface ApplyShops : NSObject


/**
 ID
 */
@property(nonatomic,copy)NSString *ID;

/**
 BrandID
 */
@property(nonatomic,copy)NSString *BrandID;

/**
 ShopID场馆
 */
@property(nonatomic,copy)NSString *ShopID;

/**
 SectID门派
 */
@property(nonatomic,copy)NSString *SectID;

/**
 UserID
 */
@property(nonatomic,copy)NSString *UserID;

/**
 MemberID
 */
@property(nonatomic,copy)NSString *MemberID;

/**
 Status
 */
@property(nonatomic,copy)NSString *Status;

/**
 Type
 */
@property(nonatomic,copy)NSString *Type;

/**
 Message
 */
@property(nonatomic,copy)NSString *Message;

/**
 AddTime
 */
@property(nonatomic,copy)NSString *AddTime;

/**
 *  用户账号归档
 */
+ (void)saveShop:(ApplyShops *)shop;

/**
 *  读取用户账号存档
 */
+ (ApplyShops *)shop;



@end

#pragma mark - 登录返回的数据

@interface loginUser : NSObject


/**
 门派编号
 */
@property(nonatomic,copy)NSString *SectID;

/**
 Code
 */
@property(nonatomic,copy)NSString *Code;

/**
 ExpireTimeSIG失效时间
 */
@property(nonatomic,copy)NSString *ExpireTime;

/**
 ExpireTimeSIG初始时间
 */
@property(nonatomic,copy)NSString *InitTime;

/**
 Message
 */
@property(nonatomic,copy)NSString *Message;

/**
 ShopID
 */
@property(nonatomic,copy)NSString *ShopID;

/**
 Token
 */
@property(nonatomic,copy)NSString *Token;

/**
 申请加入场馆，门派记录
 */
@property(nonatomic,copy)NSArray *ApplyShops;
/**
 品牌列表
 */
@property(nonatomic,copy)NSArray *BrandList;



/**
 MemberID
 */
@property(nonatomic,copy)NSString *MemberID;

/**
 Status
 */
@property(nonatomic,copy)NSString *Status;

/**
 Type
 */
@property(nonatomic,copy)NSString *Type;

/**
 UserID
 */
@property(nonatomic,copy)NSString *UserID;

/**
 MasterType
 */
@property(nonatomic,copy)NSString *MasterType;

/**
 SIG
 */
@property(nonatomic,copy)NSString *SIG;

/**
 SIG
 */
@property(nonatomic,copy)NSString *TLSToken;

/**
 *  用户账号归档
 */
+ (void)saveUser:(loginUser *)user;

/**
 *  读取用户账号存档
 */
+ (loginUser *)uesr;


@end


@interface UserAccount : NSObject

typedef enum : NSUInteger {
    ThirdLoginTypeWeChat = 1,
    ThirdLoginTypeQQ = 0,
    ThirdLoginTypeWeibo = 2
} ThirdLoginType;


@property(nonatomic,copy)NSString *ID;

@property(nonatomic,copy)NSString *UserID;

@property(nonatomic,copy)NSString *MemberID;


/**
 门派编号
 */
@property(nonatomic,copy)NSString *SectID;

/**
 Code
 */
@property(nonatomic,copy)NSString *Code;

/**
 ExpireTimeSIG失效时间
 */
@property(nonatomic,copy)NSString *ExpireTime;

/**
 ExpireTimeSIG初始时间
 */
@property(nonatomic,copy)NSString *InitTime;

/**
 Message
 */
@property(nonatomic,copy)NSString *Message;

/**
 ShopID
 */
@property(nonatomic,copy)NSString *ShopID;

/**
 Token
 */
@property(nonatomic,copy)NSString *Token;

/**
 申请加入场馆，门派记录
 */
@property(nonatomic,copy)NSArray *ApplyShops;
/**
 品牌列表
 */
@property(nonatomic,copy)NSArray *BrandList;

@property(nonatomic,copy)NSString *Name;//帐号

@property(nonatomic,copy)NSString *Pwd;//密码

@property(nonatomic,copy)NSString *RealName;//真实姓名

@property(nonatomic,copy)NSString *CellPhone;//手机

@property(nonatomic,copy)NSString *Pic;//头像

@property(nonatomic,copy)NSString *Memo;//备注

@property(nonatomic,copy)NSString *Sex;//性别

@property(nonatomic,copy)NSString *MasterType;//注册用户类型 0:教练 1:师傅 ，不传默认是教练

@property(nonatomic,copy)NSString *NickName;//昵称

@property(nonatomic,copy)NSString *userPassword;

@property(nonatomic,copy)NSString *TLSToken;

@property(nonatomic,copy)NSString *Address;

@property(nonatomic,copy)NSString *WxAccount;//微信

@property(nonatomic,copy)NSString *FavTags;//:"擅长,擅长2"

/**
 *  用户账号归档
 */
+ (void)saveAccount:(UserAccount *)account;

/**
 *  读取用户账号存档
 */
+ (UserAccount *)account;

@end
